package makabakaquestionnaire.zutsoftware.service;

import com.github.pagehelper.PageInfo;
import makabakaquestionnaire.zutsoftware.entity.request.QueryProjectRequest;
import makabakaquestionnaire.zutsoftware.entity.UserProject;

import java.util.List;

public interface UserProjectService {
    public List<UserProject> queryAll();

    /**
     * 根据问卷key
     *
     * @param
     * @return
     */
    public UserProject queryProjectByProKey(String proKey);

    /**
     * 根据问卷的状态查找问卷，同时还要根据UserId
     *
     * @param Status
     * @return
     */
    List<UserProject> queryProjectWithStatus(Long Status, String username);

    /**
     * 根据UserProject对象的id查询Paper，返回Paper
     *
     * @param UserID
     * @return
     */
    List<UserProject> queryProjectByUserID(Long UserID);

    /**
     * 插入一个UserProject对象到数据库中
     */
    Boolean insertProject(UserProject userProject);

    /**
     * 更新问卷
     *
     * @param userProject
     * @return
     */
    Boolean updateProject(UserProject userProject);

    Boolean deleteProject(Long id);

    PageInfo<UserProject> queryProjectByRequest(QueryProjectRequest queryProjectRequest);


}
